package mysgs.gameevent;

import org.openslash.util.ResultRow;

public class RelatedEvent {
	public short effectId;
	public int priority;
	public int packageSN;
	public boolean isSkill;//[extra_condition1]
	public boolean isGroup;//[extra_condition2]
	public String eventClass;
	
	public RelatedEvent(ResultRow rr)
	{
		effectId = Short.valueOf(rr.getColumn(0)).shortValue();
		eventClass = rr.getColumn(1);
		priority = Integer.valueOf(rr.getColumn(2)).intValue();
		packageSN = Integer.valueOf(rr.getColumn(3)).intValue();
		isSkill = "1".equals(rr.getColumn(4));
		isGroup = "1".equals(rr.getColumn(5));
	}
}
